<html>
	<head>
		<title><% Return ReportTitle %></title>
		<style>
			.content {width: 1024px; margin-left: auto; margin-right: auto; text-align: left;}
		
			body {font-family: tahoma; font-size: 14px; color: #444444; text-align: center;}

			td {padding: 5px; font-family: tahoma; font-size: 14px; color: #444444;}
			
			.pass {color: #6A953B;}
			.fail {color: #F26E1B;}
			.description {font-size: 10px;}
			
			.odd td {background-color: #EEEEEE;}
			.even td {background-color: #FFFFFF;}
			.header td {background-color: #666666; color: #EEEEEE;}
			
			.a4 td {border-top: 2px solid #999999;}
			
			a {margin-bottom: 3px; text-decoration: none; border-bottom: 1px dashed #444444; color: #444444; display: inline-block}
			a:hover {border-bottom: 1px dashed #0066CC; margin-bottom: 3px; text-decoration: none; color: #0066CC; display: inline-block}
			
			.info td {font-size: 11px; padding: 3px; width: 400px;}
		</style>
	</head>
	
	<body>
		<div class="content">
			<table width="100%">
				<tr>
					<td valign="bottom"><font style="font-size: 28px;">Test Summary Report</font></td>
					<td align="right">
						<table class="info" cellspacing="2" cellpadding="0">
							<tr>
								<td align="right"><font style="color: #A0A0A0;">Environment:</font></td>
								<td><% Return EnvironmentName %></td>
							</tr>
							<tr>
								<td align="right"><font style="color: #A0A0A0;">Test Suite:</font></td>
								<td><% Return TestSuiteName %></td>
							</tr>
							<tr>
								<td align="right"><font style="color: #A0A0A0;">Execution Time:</font></td>
								<td><% Return TestSuite.AvaragePerformedTime %> (00 hour 00 minutes)</td>
							</tr>
							<tr>
								<td align="right"><font style="color: #A0A0A0;">Run By:</font></td>
								<td><% Return UserName %></td>
							</tr>
						</table>	
					</td>
					<td valign="bottom">
						<span style="display: inline-block; width: 60;">Passed: </span><span style="color: #6A953B; border-bottom: 3px solid #6A953B; display: inline-block; width: 50%;">34</span><br />
						<span style="display: inline-block; width: 60;">Failed: </span><span style="color: #F26E1B; border-bottom: 3px solid #F26E1B; display: inline-block; width: 12.5%;">12</span><br />
						<span style="display: inline-block; width: 60;">Skipped: </span><span style="color: #999999; border-bottom: 3px solid #999999; display: inline-block; width: 99.9%;">2</span>
					</td>
				</tr>
			</table>
			<br />
			<table cellspacing="0" width="100%">
				<tr class="header">
					<td>Test Script</td>
					<td width="70">Status</td>
					<td>Description</td>
				</tr>
				<% blnOdd = False %>
				<% For i=1 To TestSuite.TestScriptCount %>
				<% If TestSuite(i).Iterate Then %>
					<% blnOdd = Not blnOdd : If blnOdd Then %>
						<tr class="odd">
					<% Else %>
						<tr class="even">
					<% End If %>
						<td><% Return TestSuite(i).GetTestScriptInfo("Name") %><br /><font class="description"><% Return TestSuite(i).GetTestScriptInfo("Description") %></font></td>
						<td><% If TestSuite(i).Status = "Success" Then %><font class="pass"><% Return TestSuite(i).Status %></font><% Else %><font class="fail"><% Return TestSuite(i).Status %></font><% End If %></td>
						<td></td>
					</tr>
					<% For intTestScriptIteration=1 To TestSuite(i).IterationCount %>
					<% blnOdd = Not blnOdd : If blnOdd Then %>
						<tr class="odd">
					<% Else %>
						<tr class="even">
					<% End If %>
						<% If CreateDetailedReport Then %>
							<td style="padding-left: 20px;"><% Return "<a href=""" & TestSuite(i).GetTestScriptInfo("Name") & " (iteration " & intTestScriptIteration & ").html"" style=""font-size: 12px;"">" & TestSuite(i).Item(intTestScriptIteration).IterationName & "</a>" %></td>
						<% Else %>
							<td style="font-size: 12px; padding-left: 20px;"><% Return TestSuite(i).Item(intTestScriptIteration).IterationName %></td>
						<% End If %>
						<td><% If TestSuite(i).Item(intTestScriptIteration).Status = "Success" Then %><font class="pass"><% Return TestSuite(i).Item(intTestScriptIteration).Status %></font><% Else %><font class="fail"><% Return TestSuite(i).Item(intTestScriptIteration).Status %></font><% End If %></td>
						<td><font class="description"><% Return TestSuite(i).Item(intTestScriptIteration).ErrorDescription %></td>
					</tr>
					<% Next %>
				<% Else %>
					<% blnOdd = Not blnOdd : If blnOdd Then %>
						<tr class="odd">
					<% Else %>
						<tr class="even">
					<% End If %>
						<td><% If CreateDetailedReport Then %>
								<% Return "<a href=""" & TestSuite(i).GetTestScriptInfo("Name") & ".html"">" & TestSuite(i).GetTestScriptInfo("Name") & "</a>" %><br />
							<% Else %>
								<% Return TestSuite(i).GetTestScriptInfo("Name") %><br />
							<% End If %>
							<font class="description"><% Return TestSuite(i).GetTestScriptInfo("Description") %></font></td>
						<td><% If TestSuite(i).Status = "Success" Then %><font class="pass"><% Return TestSuite(i).Status %></font><% Else %><font class="fail"><% Return TestSuite(i).Status %></font><% End If %></td>
						<td><font class="description"><% Return TestSuite(i).Item(1).ErrorDescription %></td>
					</tr>
				<% End If %>
			<% Next %>
			</table>
		</div>
	</body>
</html>